package com.lp.multi.thread.example02;

/**
 * @author: lp
 * @create: 2021-06-21 7:21
 * @description: TODO
 */
public class FirstThread extends Thread{
    @Override
    public void run() {
        //覆盖run
        for (int i = 0; i < 1000; i++) {
            System.out.println("多线程运行中"+i);
        }
    }

    public static void main(String[] args) {
        FirstThread thread01 = new FirstThread();
        thread01.start();

        for (int i = 0; i < 1000; i++) {
            System.out.println("主线程运行中");
        }
    }
}
